POV-Ray : Newsgroups : povray.general : Direction on a spline : Re: Direction on a spline Server Time
4 Aug 2024 06:17:20 EDT (-0400)
  Re: Direction on a spline  
From: gonzo
Date: 14 Jul 2003 16:40:47
Message: <3f13154f$1@news.povray.org>
Luke <Luk### [at] hotmailcom> wrote in message
news:3f12cc2c@news.povray.org...
> "Jim Charter" <jrc### [at] aolcom> wrote in message
> news:3f122fe5$1@news.povray.org...
>
> > You use the Reorient_Trans macro from transforms.inc

Thanks Jim & Luke, for pointing me to that include! Never used it before,
there's some good stuff in there!
Got it working perfectly now!

But not on the first try...  so now have a question...
Your way Jim,
    > > Reorient (  -z, your_spline ( count ) -  your_spline ( count - 1 ) )
puts me into transforms.inc with this error; "Parse Error: Singular matrix
in MInvers."

Luke's way works fine...
    > #declare Delta = something
    > Reorient( -z, your_spline ( count + Delta) - your_spline ( count -
Delta ) )

Reading the docs, both ways appear to be valid, I'm passing 2 vectors either
way.  Why does the first way give an error?

RG


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.